# Contributor: Maciej Klak <klak.maciej@gmail.com>
# Maintainer: Maciej Klak <klak.maciej@gmail.com>
pkgname=libzookeeper
pkgver=3.4.14
pkgrel=1
pkgdesc="The Apache ZooKeeper system for distributed coordination is a high-performance service for building distributed applications."
url="https://zookeeper.apache.org"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-dev"
options="!check" # No test suite
source="http://www-eu.apache.org/dist/zookeeper/zookeeper-$pkgver/zookeeper-$pkgver.tar.gz
	fix-sprintf-overflow.patch"
builddir="$srcdir/zookeeper-$pkgver/zookeeper-client/zookeeper-client-c"

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b2e03d95f8cf18b97a46e2f53871cef5a5da9d5d80b97009375aed7fb35368c440ca944c7e8b64efabbc065f6fb98bb86239f7c1491f0490efc71876d5a7f424  zookeeper-3.4.14.tar.gz
91c6ef3f4c8edf1e95ccbd85fc961760f21f4943631fc8a7f6e2a7984ca0fc6b381075ac55f7b91c6439e9c7dc2fdb74d016238250e5c156bbd1f4bc11e2abaa  fix-sprintf-overflow.patch"
